import request from '@/router/axios'

export function fetchWxEvaluationTemplateList(query) {
  return request({
    url: '/mp/wxevaluationtemplate/page',
    method: 'get',
    params: query
  })
}

export function addWxEvaluationTemplateObj(obj) {
  return request({
    url: '/mp/wxevaluationtemplate',
    method: 'post',
    data: obj
  })
}

export function getWxEvaluationTemplateObj(id) {
  return request({
    url: '/mp/wxevaluationtemplate/public/' + id,
    method: 'get'
  })
}

export function delWxEvaluationTemplateObj(id) {
  return request({
    url: '/mp/wxevaluationtemplate/' + id,
    method: 'delete'
  })
}

export function putWxEvaluationTemplateObj(obj) {
  return request({
    url: '/mp/wxevaluationtemplate',
    method: 'put',
    data: obj
  })
}

//修改评价模板状态
export function editStatusByIdAndStatus(id) {
  return request({
    url: '/mp/wxevaluationtemplate/editStatus/' + id,
    method: 'get'
  })
}

